package restaurant.gui;

import java.awt.BorderLayout;
import java.awt.Color;

import javax.swing.BoxLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;

/**
 * This JFrame is used to create the GUI for the manager. This consists of two
 * different panels: the {@code InteractionsPanel} and the
 * {@code SimulationPanel}.
 * 
 * @author Odessa
 */
@SuppressWarnings("serial")
public class ManagerView extends JFrame
{

	/** The content pane. */
	private JPanel contentPane;



	/**
	 * Create the frame and add two panels.
	 */
	public ManagerView() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		contentPane.setBackground(Color.darkGray);
		contentPane.setLayout(new BoxLayout(contentPane, BoxLayout.Y_AXIS));

		setContentPane(contentPane);
		contentPane.add(new ActionsPanel());

		pack();
		setVisible(true);
	}

}
